<extend name="Layout:base"/>

<block name="title">创建班级</block>
<block name="css">

</block>
<block name="xygl">active</block>
<block name="bjgl">active</block>
<block name="menu">
    <h5 class="breadcrumbs-title">创建班级</h5>
    <ol class="breadcrumbs">
        <li class="active"><a href="{:U('Admin/Index/index')}">首页</a>
        </li>
        <li class="active">创建班级
        </li>
    </ol>
</block>

<block name="main">
    <div class="col s10 m10 l10 offset-l1 offset-s1 offset-m1">
        <h3 class="center-align">创建班级</h3>
        <form action="" method="post">
            <div class="row">
                <div class="input-field col s12">
                    <input id="cid" name="cid" type="text" class="validate" required>
                    <label for="cid">班级编号</label>
                </div>
            </div>
            <div class="row">
                <div class="input-field col s12">
                    <input id="name" name="name" type="text" class="validate" required>
                    <label for="name">班级名称</label>
                </div>
            </div>
            <div class="row">
                <div class="input-field col s12">
                    <input id="regyear" name="regyear" type="text" class="validate" required>
                    <label for="regyear">年级（例如：2015，2014）</label>
                </div>
            </div>
            <div class="row">
                <div class="input-field col s12">
                    <select name="did" required>
                        <option value="" disabled selected>选择系部</option>
                        <volist name=":getDept()" id="vo">
                            <option value="{$vo.did}">{$vo.name}</option>
                        </volist>
                    </select>
                    <label>系部名称</label>
                </div>
            </div>

            <div class="row">
                <div class="input-field col s12 l12 m12 center-align">
                    <input class="waves-effect waves-light btn blue" type="submit" value="添加">
                    <input class="waves-effect waves-light btn red" type="reset" value="重置">
                </div>
            </div>
        </form>
    </div>

</block>

<block name="js">
    <script>
        $(document).ready(function () {
            $('select').material_select();
        });
    </script>
</block>